//============================================================================
// Name        : SanJiaoXing.cpp
// Author      : tyong
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <math.h>
using namespace std;
class Triangle{
public:
	Triangle(){a=0;b=0;c=0;}
	Triangle(double a1,double b1,double c1):a(a1),b(b1),c(c1){};
	void show();
	double area();
private:
	double a;
	double b;
	double c;
};
void Triangle::show(){
	cout<<a<<","<<b<<","<<c<<endl;
}
double Triangle::area(){
	double p = (a+b+c)/2;
	double S= sqrt((p*(p-a)*(p-b)*(p-c)));
	return S;
}

int main() {
	double a,b,c;
	cin>>a>>b>>c;
	Triangle t1,t2(a,b,c);
	t1.show();
	t2.show();
	cout<<t1.area()<<endl;
	cout<<t2.area()<<endl;
	return 0;
}
